<div id="pan">
	<?php echo $html->link(__('Home',true), '/'); ?> &gt; 
	<strong><?php echo __('Tags',true); ?></strong>
</div>

<?php if(!empty($tags)):?>   
<div id="tags_index">
<h2>Tags</h2>
	<div id="tags">  
	<?php
			foreach($tags as $tag)
			{           
				if(isset($tag[0]['count'])) {
					$count = $tag[0]['count'];
				} else if (!empty($tag['Article'])) {
					$count = count($tag['Article']);
				} else {
					$count = '1';
				}
				$size = ($count < '30') ? $count + 11 : '40';
				echo ' '.$html->link($tag['Tag']['name'], '/tags/view/'.rawurlencode($tag['Tag']['name']), array('style'=>'font-size:'.$size.'px'));
			}
	?>		   
	</div>		
	<div class="paging">
		<?php echo $paginator->prev('<< previous', array(), null, array('class'=>'disabled'));?>
		|
		<?php echo $paginator->next('next >>', array(), null, array('class'=>'disabled'));?>
	</div>
</div>
<?php endif;?>
